<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.transcargo.errors.ErrorList" %>
<%@include file="header.jsf"%>
<%@include file="session.jsf"%>
<%
    String fail = request.getParameter("err");
    if (fail != null && fail.equals("1")) User_Id = -3;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TransCargo</title>
</head>
<body>
<center>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr><td>
			<%@include file="page_header.jsf"%>
        </td></tr>
        <tr><td width="80%" align="center">
<%
	switch (User_Id) {
	case -1:
		out.print("<font color=red>" + ErrorList.ERROR_STR_SESSION_EXPIRED + "</font><br>");
		break;
	case -2:
		out.print("<font color=red>" + ErrorList.ERROR_STR_ANOTHER_IP + "</font><br>");
		break;
	case -3:
		out.print("<font color=red>" + ErrorList.ERROR_STR_AUTH_FAILED + "</font><br>");
		break;
	}
%>
<%@include file="login.jsf"%>
	</td></tr>
	</table>
</center>
</body>
</html>